from django.conf.urls.defaults import *
from django.contrib import admin
import logging
admin.autodiscover()


urlpatterns = patterns('socialbar.views',
    # url(r'^saveCoordinate/(?P<latitude>\w+)/(?P<longitude>\w+)', 'saveCoordinate'),
    url(r'^saveCoordinate', 'saveCoordinate'),
    url(r'^admin/', include(admin.site.urls)),
    
    url(r'^createAccount$', 'createAccount', name="createAccount"),
    url(r'^buyDeal$', 'buyDeal', name="buyDeal"),
    url(r'^useDeal$', 'useDeal', name="useDeal"),
    url(r'^login$', 'loginView', name="loginView"),
    url(r'^logout$', 'logoutView', name="logoutView"),
    url(r'^writeBarsJson$', 'writeBarsJson', name='writeBarsJson'),
    url(r'^getSimpleBarJson$', 'getSimpleBarJson', name='getSimpleBarJson'),
    url(r'^bar/(?P<barName>\w+)', 'routeBar', name='routeBar'),
    url(r'^barManager$', 'barManager', name='barManager'),
    url(r'^cuponManager$', 'cuponManager', name='cuponManager'),
    url(r'^manualBootstrap$', 'manualBootstrap', name='manualBootstrap'),
    url(r'^list$', 'routePage', {'page': 'list'}),
    url(r'^homeishere$', 'routePage', {'page': 'list'}),
    url(r'^$', 'emptyPage'),
    url(r'^bar$', 'routePage', {'page': 'bar'}),
    url(r'^profile$', 'routePage', {'page': 'profile'}),
    url(r'^easyGoogleConnect$', 'easyGoogleConnect'),
    url(r'^connectWithGoogleAccount$', 'connectWithGoogleAccount'),
    url(r'^paiement/getToken$', 'getToken'),
    url(r'^paiement/makePurchase$', 'makePurchase'),
    url(r'^', include(admin.site.urls)),
)
